// BWBackStitchStorage.h -- store sets of backstitches

#import "BWGridGeometry.h"
#import "BWBackStitch.h"

@class BWThread;

@interface BWBackStitchStorage : NSObject <NSCoding>
{
    NSMutableArray *stitches;
}

- (int) count;
- (BWBackStitch *) stitchAtIndex: (int) index;

- (NSArray *) stitches;
- (void) purge;

- (void) addBackStitchFromRow: (int) fromRow
                       column: (int) fromColumn
                     quadrant: (BWGrid_Quadrant) fromQuadrant
                        toRow: (int) toRow
                       column: (int) toColumn
                     quadrant: (BWGrid_Quadrant) toQuadrant
                       thread: (BWThread *) thread;

- (void) addStitch: (BWBackStitch *) stitch;

- (void) removeStitch: (BWBackStitch *) stitch;

@end // BWBackStitchStorage
